/*
 * tools.cpp
 *
 *  Created on: 2008-7-6
 *      Author: zarra
 */

#include "tools.h"

//std::string toUTF8(const std::wstring& wstr){
//	size_t size=4*(wstr.size()+1);
//	char* buff=(char*)malloc(size);
//	memset(buff,0,size);
//	sprintf(buff,"%S",wstr.c_str());
//	std::string s(buff);
//	free(buff);
//	return s;
//}
scim::String get_validate_encoding(scim::String encoding){
	return scim::scim_get_locale_encoding(scim::scim_get_current_language()+'.'+encoding);
}
